<?php $taxi_order = $form->getObject() ?>
<h1><?php echo $taxi_order->isNew() ? 'New' : 'Edit' ?> Order</h1>

<form action="<?php echo url_for('order/update'.(!$taxi_order->isNew() ? '?id='.$taxi_order->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('order/index') ?>">Cancel</a>
          <?php if (!$taxi_order->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'order/delete?id='.$taxi_order->getId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php //echo $form['created_at']->renderLabel() 
        ?></th>
        <td>
          <?php //echo $form['created_at']->renderError() 
          ?>
          <?php //echo $form['created_at'] 
          ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['date']->renderLabel() ?></th>
        <td>
          <?php echo $form['date']->renderError() ?>
          <?php echo $form['date'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['time']->renderLabel() ?></th>
        <td>
          <?php echo $form['time']->renderError() ?>
          <?php echo $form['time'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['name']->renderLabel() ?></th>
        <td>
          <?php echo $form['name']->renderError() ?>
          <?php echo $form['name'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['contact_number']->renderLabel() ?></th>
        <td>
          <?php echo $form['contact_number']->renderError() ?>
          <?php echo $form['contact_number'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['pickup_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['pickup_address']->renderError() ?>
          <?php echo $form['pickup_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['destination_address']->renderLabel() ?></th>
        <td>
          <?php echo $form['destination_address']->renderError() ?>
          <?php echo $form['destination_address'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['number_of_passengers']->renderLabel() ?></th>
        <td>
          <?php echo $form['number_of_passengers']->renderError() ?>
          <?php echo $form['number_of_passengers'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['number_of_luggage']->renderLabel() ?></th>
        <td>
          <?php echo $form['number_of_luggage']->renderError() ?>
          <?php echo $form['number_of_luggage'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['vehicle_type']->renderLabel() ?></th>
        <td>
          <?php echo $form['vehicle_type']->renderError() ?>
          <?php echo $form['vehicle_type'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['comment']->renderLabel() ?></th>
        <td>
          <?php echo $form['comment']->renderError() ?>
          <?php echo $form['comment'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['cost']->renderLabel() ?></th>
        <td>
          <?php echo $form['cost']->renderError() ?>
          <?php echo $form['cost'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['driver_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['driver_id']->renderError() ?>
          <?php echo $form['driver_id'] ?>

        <?php echo $form['id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
